package kr.hkit.powerjava.chapter07;

import java.util.Scanner;

public class Secret {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			int b;
			String n;
			
			System.out.println("문자를 입력하세요.");
			n = sc.next();
			b = n.length();
			
			for(int a = b-1; a >= 0; a--){
				String s = n.substring(a, b);
				b--;
				System.out.print(s);
			}			
	}
}
